package com.education.service;

import com.education.pojo.Img;
import com.education.pojo.TestPaper;
import com.education.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * 邓恒君
 * 个人中心系列功能Service层
 * Created by Administrator on 2018/4/26.
 */
public interface UserLoginService {

    int userCount(String username);

    User userAnswer(String username);

    User userId(String username, String password);

    int userPasswordA(User user);

    int userPasswordP(Map map);

    int updateUser(User user);

    int addUser(User user);

    User getUser(int uid);

    int changeHead(int uid, String uhead);

    User getUserPhone(String username, String password);

    User getUidPhone(String phone);

    int getPhoneCount(String phone);

    List<TestPaper> getUserCollection(int uid);

    int deleteUserCollection(int uid, String tpname);

    int selectUserCollection(String tpName);

    List<Img> getUserImg(int uId);

    int setUserHead(Img img);

    int deleteUserHead(int uid, String imgName);
}
